<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.6.3.min.js"></script>
    <script>
        $(function () {
            $.get("hello/findSubjects",function (data) {
                console.log(data);
                //data=JSON.parse(data);
                $.each(data,function (i,o) {
                    //let o=$(this);
                    $("#subj").append("<h1>"+o.id+","+o.subjectname+"</h1>");
                });
            });
        });
    </script>
</head>
<body>
  <div id="subj">

  </div>
</body>
</html>